Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update xstate monorepo (major) #1478

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 9, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@xstate/vue (source) ^2.0.0 -> ^3.1.1 age adoption passing confidence
xstate (source) ^4.38.3 -> ^5.9.1 age adoption passing confidence

Release Notes

statelyai/xstate (@​xstate/vue)

v3.1.1

Compare Source

Patch Changes

v3.1.0

Compare Source

Minor Changes
  • #​4231 c2402e7bc Thanks @​davidkpiano! - The actor passed to useSelector(actor, selector) is now allowed to be undefined for an actor that may not exist yet. For actors that may be undefined, the snapshot provided to the selector function can also be undefined:

    const count = useSelector(maybeActor, (snapshot) => {
      // `snapshot` may be undefined
      return snapshot?.context.count;
    });
    
    count; // number | undefined

v3.0.3

Compare Source

Patch Changes

v3.0.2

Compare Source

Patch Changes

v3.0.1

Compare Source

Patch Changes
  • #​3456 131d429ab Thanks @​davidkpiano! - Add shallowEqual helper comparator function.

  • #​3500 0dfc6d92f Thanks @​Andarist! - Fixed an issue with useSelector always computing fresh snapshots internally for uninitialized services. This avoids the internal useSyncExternalStore from warning about the snapshot value not being cached properly.

v3.0.0

Compare Source

Major Changes
  • #​2939 360e85462 Thanks @​Andarist! - This package now accepts React 18 as a peer dep and the implementation has been rewritten to use use-sync-external-store package. This doesn't break compatibility with older versions of React since we are using the shim to keep compatibility with those older versions.

  • #​2939 360e85462 Thanks @​Andarist! - asEffect and asLayoutEffect action creators were removed. They were not fitting the React model that well and could lead to issues as their existence suggested that they are easy to use.

    To execute actions at those exact times you can always either just call your stuff directly from those effects or send events to the machine from those effects and execute explicit actions in response to said events.

  • #​2939 360e85462 Thanks @​Andarist! - The signatures of useMachine and useService integrating with @xstate/fsm were changed. They now only accept a single generic each (TMachine and TService respectively). This has been done to match their signatures with the related hooks that integrate with xstate itself.

Patch Changes
  • #​2939 360e85462 Thanks @​Andarist! - In v2 we have changed signatures of useMachine and useInterpret. Instead of accepting a list of generics they now only support a single generic: TMachine. This change, erroneously, was only introduced to types targeting [email protected] but the types targeting previous TS releases were still using the older signatures. This has now been fixed and users of older TS versions should now be able to leverage typegen with @xstate/react.

  • #​2939 360e85462 Thanks @​Andarist! - useMachine for xstate now correctly rerenders with the initial state when the internal service is being restarted. This might happen during Fast Refresh and now you shouldn't be able to observe this stale state that didn't match the actual state of the service.

  • #​2939 360e85462 Thanks @​Andarist! - useMachine for @xstate/fsm now starts the service in an effect. This avoids side-effects in render and improves the compatibility with StrictMode.

  • #​2939 360e85462 Thanks @​Andarist! - Implementations given to useMachine targeting @xstate/fsm are now updated in a layout effect. This avoid some stale closure problems for actions that are executed in response to events sent from layout effects.

  • Updated dependencies [360e85462, 360e85462]:


Configuration

📅 Schedule: Branch creation - "before 5am every weekday" in timezone America/New_York, Automerge - "every weekday" in timezone America/New_York.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Apr 9, 2024
@renovate renovate bot requested a review from kongponents-bot as a code owner April 9, 2024 07:05
@renovate renovate bot added the renovate-bot label Apr 9, 2024
@renovate renovate bot requested a review from a team as a code owner April 9, 2024 07:05
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 45e6968 to d413283 Compare April 11, 2024 08:37
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from d413283 to 6b2c6eb Compare April 12, 2024 04:08
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 6b2c6eb to b8a46c9 Compare April 15, 2024 04:15
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from b8a46c9 to dbde8aa Compare April 15, 2024 08:29
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from dbde8aa to eb2ffe4 Compare April 16, 2024 05:27
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from eb2ffe4 to 9bff547 Compare April 18, 2024 04:16
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 9bff547 to e502893 Compare April 19, 2024 04:43
@adamdehaven adamdehaven deleted the renovate/major-xstate-monorepo branch April 19, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file renovate-bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants